package com.jeasonzhao.report.model;

public class DictItem
{
    private String m_strName = null;
    private Object m_objParentKey = null;
    private Object m_objKey = null;
    public DictItem()
    {
    }

    public DictItem(Object parentKey,Object key,String strname)
    {
        m_objParentKey = parentKey;
        m_objKey = key;
        m_strName = strname == null ? "" : strname.trim();
    }

    public String getName()
    {
        return m_strName;
    }

    public void setName(String Name)
    {
        this.m_strName = Name;
    }

    public String toString()
    {
        return this.m_strName;
    }

    public Object getParentKey()
    {
        return m_objParentKey;
    }

    public void setParentKey(Object v)
    {
        this.m_objParentKey = v;
    }

    public void setKey(Object key)
    {
        this.m_objKey = key;
    }

    public Object getKey()
    {
        return m_objKey;
    }

    private int m_currentLevel = 0;
    public void setCurrentLevel(int currentLevel)
    {
        this.m_currentLevel = currentLevel;
    }

    public int getCurrentLevel()
    {
        return Math.max(m_currentLevel,0);
    }
}
